# This is a BitKeeper generated patch for the following project: # Project Name: Linux kernel tree # This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas: # ChangeSet 1.1046.69.12 -> 1.1046.69.13 # kernel/sysctl.c 1.41 -> 1.41.1.1 # include/linux/sysctl.h 1.43 -> 1.43.1.1 # # The following is the BitKeeper ChangeSet Log # -------------------------------------------- # 03/05/14 davidm@tiger.hpl.hp.com 1.1046.69.13 # Add /proc/sys/kernel/cache_decay_ticks. # -------------------------------------------- # diff -Nru a/include/linux/sysctl.h b/include/linux/sysctl.h --- a/include/linux/sysctl.h Mon Sep 22 12:59:23 2003 +++ b/include/linux/sysctl.h Mon Sep 22 12:59:23 2003 @@ -130,6 +130,7 @@ KERN_PIDMAX=55, /* int: PID # limit */ KERN_CORE_PATTERN=56, /* string: pattern for core-file names */ KERN_PANIC_ON_OOPS=57, /* int: whether we will panic on an oops */ + KERN_CACHEDECAYTICKS=58, /* ulong: value for cache_decay_ticks (EXPERIMENTAL!) */ }; diff -Nru a/kernel/sysctl.c b/kernel/sysctl.c --- a/kernel/sysctl.c Mon Sep 22 12:59:23 2003 +++ b/kernel/sysctl.c Mon Sep 22 12:59:23 2003 @@ -265,6 +265,10 @@ 0600, NULL, &proc_dointvec}, {KERN_PANIC_ON_OOPS,"panic_on_oops", &panic_on_oops,sizeof(int),0644,NULL,&proc_dointvec}, +#ifdef CONFIG_SMP + {KERN_CACHEDECAYTICKS, "cache_decay_ticks", &cache_decay_ticks, sizeof (cache_decay_ticks), + 0644, NULL, &proc_doulongvec_minmax}, +#endif {0} };